import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

export const getGoodsList = (params: any) => {
  return http.get(PORT1 + "/dish/list", params);
};

export const addGoods = (params: any) => {
  return http.post(PORT1 + "/dish/create", params);
};

export const editGoods = (params: any) => {
  return http.put(PORT1 + "/dish/update", params);
};

export const deleteGoods = (params: any) => {
  return http.delete(PORT1 + "/dish/delete", params);
};

export const uploadFile = (params: any) => {
  return http.post<any>(PORT1 + "/upload/file", params);
};
